package com.example.config;


import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    /**
     * 配置请求重试
     */
    @Bean
    public Retryer feignRetryer(){
        return new Retryer.Default(200,60,10);
    }
    /**
     * 打印请求日志
     */
    public feign.Logger.Level logerLevel(){
        return Logger.Level.FULL;
    }
}
